<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="row">
        <div class="col-md-4 col-xs-12 form-group">
            <label for="c-project_id" class="control-label col-xs-12 col-sm-2">{:__('项目')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-project_id"  data-source="workteam/project/index" data-field="name"
                       class="form-control selectpage" name="row[project_id]" type="text" value="{:input('ids','','intval')}">

            </div>
        </div>


        <div class="col-md-4 col-xs-12 form-group">
            <label for="c-money" class="control-label col-xs-12 col-sm-2">{:__('支出费用')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-money" type="number" data-rule="required" class="form-control" name="row[money]" value=""/>
                <span class="text-red text-money"></span>
            </div>
        </div>

        <div class="col-md-4 col-xs-12 form-group">
            <label for="c-pay_time" class="control-label col-xs-12 col-sm-2">{:__('支出时间')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-pay_time" value="{:datetime(time())}" class="form-control datetimepicker"
                       data-date-format="YYYY-MM-DD HH:mm" data-use-current="true" name="row[pay_time]" type="text">
            </div>
        </div>


        <div class="form-group col-md-4 col-xs-12">
            <label class="control-label col-xs-12 col-sm-2">{:__('费用类型')}:</label>
            <div class="col-xs-12 col-sm-8">
                <select id="c-type" class="form-control selectpicker" name="row[type]">
                    <option value="" selected>请选择</option>
                    {foreach name="typeList" item="vo"}
                    <option value="{$key}" >{$vo}</option>
                    {/foreach}
                </select>
                <span class="text-red "></span>
            </div>
        </div>

        <div class="col-md-4 col-xs-12 form-group">
            <label for="c-memo" class="control-label col-xs-12 col-sm-2">{:__('备注')}:</label>
            <div class="col-xs-12 col-sm-8">
                <textarea id="c-memo" class="form-control" name="row[memo]"></textarea>

            </div>
        </div>

    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>





